﻿using ReflectionStudio.Core.Events;
using System;
using System.Data;
using System.Windows;
using System.Windows.Data;
using System.ComponentModel;
namespace WPFExcelReport
{
    public partial class K0427
    {
        public K0427()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            InitializeComponent();
            SDSA = "0427";
        }
        public override void LOADALL()
        {
            base.LOADALL();
            if (SDSA.Length == 0) return;
            if (TBMain.Rows.Count > 0)
                return;
            if (DBSDDAT.ContainsKey(SDSA))
            {
                DBSDDAT.Remove(SDSA);
            }
            dwData = TBMain.NewRow();
            TMV.SetUpNewRow(ref dwData, SDSA);
            dwData["KEY"] = "TU";
            dwData["DES"] = Helpers.Helper.ConvertGB2312To8859P1("捻度");
            dwData["SDES"] = Helpers.Helper.ConvertGB2312To8859P1("捻度");
            dwData["VALUE"] = "000000000";
            TMV.Save(dwData);
            dwData["KEY"] = "OC";
            dwData["DES"] = Helpers.Helper.ConvertGB2312To8859P1("加油");
            dwData["SDES"] = Helpers.Helper.ConvertGB2312To8859P1("加油");
            dwData["VALUE"] = "000000000";

            TMV.Save(dwData);
            dwData["KEY"] = "FT";
            dwData["DES"] = Helpers.Helper.ConvertGB2312To8859P1("定型温度");
            dwData["SDES"] = Helpers.Helper.ConvertGB2312To8859P1("定型温度");
            dwData["VALUE"] = "000000000";
            TMV.Save(dwData); 
            LOADALL(); 
        }
    }
}
